<?php $this->beginContent('//layouts/main'); ?>

<!--<div class="pane ui-layout-south">South</div>-->

<!--<div id="content" class="ui-layout-center">
    <div class="ui-layout-content">
        <div class="scrolling-content">
<?php //echo $content; ?>    
        </div>
    </div>
</div>-->

<div class="ui-layout-center">
    <div class="ui-layout-content">
        <div id="unicorns" class="scrolling-content">
            <?php echo $content; ?>    
        </div>
    </div>
</div>

<!--<div class="ui-layout-south">    
</div>-->
<div class="ui-layout-west"  onmouseover="myLayout.allowOverflow('west')" onmouseout="myLayout.resetOverflow(this)">

    <div id="unicorns" class="scrolling-content" style="padding: 0!important;">

        <div style="width: 100%;">
            <img src="<?php echo Yii::app()->request->baseUrl; ?>/themes/cp-1/images/looplogo.png"/>
        </div>    
        <?php
        $this->widget('zii.widgets.CBreadcrumbs', array(
            'links' => $this->breadcrumbs,
            'htmlOptions' => array('align' => 'center'),
        ));
        $this->beginWidget('zii.widgets.CPortlet', array(
            'title' => 'Operations',
        ));
        $this->widget('zii.widgets.CMenu', array(
            'items' => $this->menu,
            'htmlOptions' => array('class' => 'operations'),
        ));
        $this->endWidget();
        
        $mainMenu = Yii::t('application', Yii::app()->controller->id . '_menu');
//        print_r($mainMenu);
        
        if (isset($mainMenu) && getType($mainMenu) == 'array') {
            $this->beginWidget('zii.widgets.CPortlet', array(
                'title' => isset($mainMenu['title']) ? $mainMenu['title'] : Yii::t('application', 'Main Menu'),
            ));
            $this->widget('zii.widgets.CMenu', array(
                'items' => $mainMenu['menu'],
//                'items' => Yii::t('application', 'fdgroup_menu'),
                'htmlOptions' => array('class' => 'operations'),
            ));
            $this->endWidget();
        }
        
        ?>
        
        <?php
//        $this->beginWidget('zii.widgets.CPortlet', array(
//            'title' => 'Shout',
//        ));
//	$this->widget('ext.shoutbox.JShoutbox', array(
//            'youtubeId' => 'abcd',
//        ));
//	$this->endWidget();
        ?>
        <!--</div>-->

        <!--        <div style="margin-top: 125px;">
                    <fieldset style="text-align: justify; border: #009; border-width: 5px; border-style: outset; padding: 5px; margin: 5px;">
                        <legend style="font-weight: bold; background-color: #BBB;">Company Name</legend>
                        <i>Address 1: ...</i><br/>
                        <i>Address 2: ...</i><br/>
                        <i>Email: ... </i><br/>
                    </fieldset>
                </div>-->

    </div><!-- End demo -->

    <!--<div class="ui-layout-east">
    </div>-->
    <?php $this->endContent(); ?>
